package com.yun.entity;

import java.sql.Time;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

public class Files {
	private int fileId;
	private String fileName;
	private String fileUrl;
	private String upTime;
	private long fileSize;
	private int typeId;
	private int userId;
	private List<MultipartFile> attachment;
	
	
	
	public Files() {
		super();
	}
	
	
	public Files(int typeId, int userId) {
		super();
		this.typeId = typeId;
		this.userId = userId;
	}


	public Files(String fileName, String fileUrl, String upTime, long fileSize, int typeId, int userId) {
		this.fileName = fileName;
		this.fileUrl = fileUrl;
		this.upTime = upTime;
		this.fileSize = fileSize;
		this.typeId = typeId;
		this.userId = userId;
	}


	public int getFileId() {
		return fileId;
	}
	public void setFileId(int fileId) {
		this.fileId = fileId;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getFileUrl() {
		return fileUrl;
	}
	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}
	public String getUpTime() {
		return upTime;
	}
	public void setUpTime(String upTime) {
		this.upTime = upTime;
	}
	
	public long getFileSize() {
		return fileSize;
	}
	public void setFileSize(long fileSize) {
		this.fileSize = fileSize;
	}
	public int getTypeId() {
		return typeId;
	}
	public void setTypeId(int typeId) {
		this.typeId = typeId;
	}
	
	
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public List<MultipartFile> getAttachment() {
		return attachment;
	}
	public void setAttachment(List<MultipartFile> attachment) {
		this.attachment = attachment;
	}
	@Override
	public String toString() {
		return "File [fileId=" + fileId + ", fileName=" + fileName + ", fileUrl=" + fileUrl + ", upTime=" + upTime
				+ ", fileSize=" + fileSize + ", typeId=" + typeId + ", userId=" + userId + ", attachment=" + attachment
				+ "]";
	}
	
}
